home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / basic / qbcref.com / DFNREC.BI < prev    next >
Encoding:
Text File  |  1989-08-17  |  1.5 KB  |  31 lines

  1. '   File Definition Record Types
  2.  
  3. TYPE DFNKEYTYPE
  4.     DFNFILNAM AS STRING * 10                ' filename and extension
  5.     DFNRECNBR AS STRING * 3                 ' record number (overlayed defs)
  6.     DFNFLDNBR AS STRING * 2                 ' field number (00 = header rec)
  7. END TYPE
  8.  
  9. TYPE DFNHDRTYPE
  10.     DFNKEY AS DFNKEYTYPE                    ' key data for header
  11.     DFNRECSIZ AS STRING * 4                 ' record size 1-9999
  12.     DFNKEYLEN AS STRING * 3                 ' length of primary key
  13.     DFNRECCNT AS STRING * 5                 ' number of records to allocate
  14.     DFNFILDSC AS STRING * 25                ' description of the file/record
  15.     DFNRETAIN AS STRING * 25                ' retention period/usage
  16.     DFNFILTYP AS STRING * 15                ' type if file (indexed, record)
  17.     DFNDFNCNT AS STRING * 1                 ' number of defined fields
  18.     DFNDFNDAT AS STRING * 298               ' binary data (3 * # defined)
  19. END TYPE
  20.  
  21. TYPE DFNITMTYPE
  22.     ITMKEY AS DFNKEYTYPE                    ' key data for field
  23.     ITMFLDNAM AS STRING * 6                 ' name of the field
  24.     ITMFLDDSC AS STRING * 24                ' description of the field
  25.     ITMFLDLEN AS STRING * 3                 ' length of the field
  26.     ITMFLDOFF AS STRING * 7                 ' offset,len within record
  27.     ITMFLDTYP AS STRING * 3                 ' data type (ANDIF) + K if key
  28.     ITMFLDPIC AS STRING * 20                ' edit picture for data
  29. END TYPE
  30.  
  31.